package com.thomas.classloading;

/**   
* @Description: TODO(用一句话描述该文件做什么) 
* @author thomas_liu  
* @date 2018年3月26日 下午10:04:53 
* @version V1.0   
*/
public class DeadLoopClass {
	
	static {
		if(true){
			System.out.println(Thread.currentThread()+ "init DeadLoopClass");
			while (true){
				
			}
		}
	}
	
	
	public static void main(String[] args) {
		Runnable script = new Runnable() {
			public void run() {
				System.out.println(Thread.currentThread() +"start");
				DeadLoopClass dlc = new DeadLoopClass();
				System.out.println(Thread.currentThread() +"run over");
			}
		};
		
		Thread thread1 = new Thread(script);
		Thread thread2 = new Thread(script);
		
		thread1.start();
		thread2.start();
 	}
}
